//
// Created by wze-zero on 2024/9/9 009.
//
#include <iostream>

using namespace std;

int main() {
    int num;
    cin >> num;
    for (int i = 0; i < num; ++i) {
        cout << "Happy new year!Good luck!" << endl;
    }
    return 0;
}